#include "gus2.h"
enum
{
	EColor = 0x45,
	EValue = 0x46,
	Flush = 0x50,
};
#if GUS2_ENABLE_ATTRI
const __gui_attr_bar CTRL_BAR_ATTR = {
	/*.Value = */EValue,
	/*.Color = */EColor,
	/*.Flush = */Flush
};
#endif 
void gui_bar_set_value(bytearray_t* ba, unsigned int value) {
	gui_ctrl_set_attrs(ba, "bd", EValue, value);
}
void gui_bar_set_color(bytearray_t* ba,  gui_color_t color) {
	gui_ctrl_set_attrs(ba, "bd", EColor, color);
}
void gui_bar_set_flush(bytearray_t* ba)
{
	gui_ctrl_set_attrs(ba, "bb", Flush, 1);
}
